package cn.vc.auth.feign.clients;

import cn.vc.auth.entity.po.Relation;
import cn.vc.basicmodule.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("auth-service")
public interface RelationClient {
    /**
     * <h2>关注用户</h2>
     * @param id
     * @return
     */
    @PostMapping("/relation")
    Result<Relation> attention(@RequestParam("id") Long id);


    /**
     * <h2>取关用户</h2>
     * @param id
     * @return
     */
    @DeleteMapping
    Result<Relation> notAttention(@RequestParam("id") Long id);
}
